#include <bits/stdc++.h>

using namespace std;

const int N=200010;
int t,n,a[N],b[N],c[N],ans=0;
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    scanf("%d",&t);
    for(int k=0;k<t;k++){
        scanf("%d",&n);
        for(int i=0;i<n;i++){
            scanf("%d",&a[i]);
            b[i]=0;
        }
    }
    cout<<'1'<<endl<<'0'<<endl<<'8';
    return 0;
}
